<?=isset($header) ? $header : ''?>
<div id="content">
	<div class="form_style">
	<div id="userinfo">
		<table>
			<tbody>
				<tr>
				<th>店點</th>
				<th>代號</th>
				<th>統一編碼</th>
				<th>電話</th>
				<th>地址</th>
				<th>操作</th>
				</tr>
				<?
				foreach($shop_point as $key=>$val){
				?>
				<tr>
				<td><?=$val->name?></td>
				<td><?=$val->code?></td>
				<td><?=$val->unified_numbering?></td>
				<td><?=$val->phone?></td>
				<td><?=$val->address?></td>
				<td>
					<a href="<?=site_url('/shop_point/edit/'.$val->shop_point_id)?>">[編輯]</a>&nbsp;
					<a href="<?=site_url('/shop_point/delete/'.$val->shop_point_id)?>">[刪除]</a>
				</td>
				</tr>
				<?
				}
				?>
				<tr>
					<td colspan="7"><a href="<?=site_url('/shop_point/add')?>" class="a_background">添加店點</a></td>
				</tr>
			</tbody>
		</table>
		</div>
		<!-- role end -->
	</div>
</div>
<?=isset($footer) ? $footer : ''?>